7.4.2 Obtain all mainnets supported by a currency
#Brief description: Get all mainnets supported by a currency
- Request method: POST
- Request interface: https://gateway-domain/blockchain-work/coin/get
- Request media type (JSON data format)Content-Type: application/json
Query parameters
| Parameter name | Type | Required | Parameter meaning | Parameter description |
|---|---|---|---|---|
coin | string | Yes | Currency code | TRX, USDT (the digital currencies supported by the wallet can be obtained through document 7.4.1) |
Request json sample
{
"coin":"USDT"
}
Response json example
{
"code": 0,
"success": true,
"message": null,
"data": {
"minCollect": 0.01,
"networks": [
{
"network": "TRON",
"protocol": "TRC20",
"collectionNetworkConfirm": 2,
"withdrawalNetworkConfirm": 2
},
{
"network": "BSC",
"protocol": "BEP20",
"collectionNetworkConfirm": 15,
"withdrawalNetworkConfirm": 15
},
{
"network": "POLYGON",
"protocol": "ERC20",
"collectionNetworkConfirm": 15,
"withdrawalNetworkConfirm": 15
},
{
"network": "ETHEREUM",
"protocol": "ERC20",
"collectionNetworkConfirm": 15,
"withdrawalNetworkConfirm": 15,
}
]
}
}
Response data parameter description
| Parameter name | Type | Parameter meaning |
|---|---|---|
minCollect | number | Minimum payment |
networks | array | Supported mainnets |
| └ network | string | main network |
| └ protocol | string | Mainnet protocol |
| └ collectionNetworkConfirm | int32 | Number of recharge network confirmations |
| └ withdrawalNetworkConfirm | int32 | Number of recharge network confirmations |